/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package warehouse.forms;

import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.Timer;

/**
 *
 * @author admin
 */
public class Main {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            showMainMenu();
        });
    }
    
    public static void showMainMenu() {
        JFrame window = new JFrame("Warehouse Administration");
        MainMenu mm = new MainMenu();

        Timer requestListener = new Timer(1000, (e) -> {
            
        });
        window.setSize(640, 240);
        window.add(mm, BorderLayout.CENTER);
        window.setLocationRelativeTo(null);
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setVisible(true);
        requestListener.start();
    }
}
